package com.baidu.day5;

public class Demo02 {
    public static void main(String[] args) {
        User user1 = new User("18","张三丰");
        User user2 = new User("20","张四");
        if (user1.id.equals(user2.id)&&user1.name.equals(user2.name)){
            System.out.println("用户信息一致");
        }else {
            System.out.println("用户信息不一致");
        }
        }

    }



